/**
  *@file test_can.h
  *@date 2016-12-12
  *@author Albert.D
  *@brief 
  */
  
#ifndef _BSP__CAN_H
#define _BSP__CAN_H

#include "stm32f4xx_HAL.h"
#include "bsp_app.h"

#define TEST_CAN1_ID    0x201
#define TEST_CAN2_ID    0x202
#define CAN1_PORT       0x01
#define CAN2_PORT       0x02

//extern uint8_t can1_rx_data[8];
//extern uint8_t can2_rx_data[8];

void CanFilter_Init(CAN_HandleTypeDef* hcan);
//void CAN_Send_Msg(CAN_HandleTypeDef* hcan, uint8_t *msg, uint32_t id, uint8_t len);
uint8_t chasis_vel_ctl(userCanBuf_t* can_buff);
uint8_t chasis_repeort_vel(userCanBuf_t* can_buff);

#endif

